% TEST_ID: LANG-EXPAND-0039
% CATEGORY: language/array-ops/ops
% 测试 & 运算符

function test_and
    A = logical([0, 1, 0, 1]);
    B = logical([1, 1, 0, 0]);
    assert(isequal(A & B, [0 1 0 0])); % Test logical AND operation
    assert(isequal(A & true, A)); % Test AND with true
end

